/**********************************************************************/
/*   ____  ____                                                       */
/*  /   /\/   /                                                       */
/* /___/  \  /                                                        */
/* \   \   \/                                                       */
/*  \   \        Copyright (c) 2003-2009 Xilinx, Inc.                */
/*  /   /          All Right Reserved.                                 */
/* /---/   /\                                                         */
/* \   \  /  \                                                      */
/*  \___\/\___\                                                    */
/***********************************************************************/

/* This file is designed for use with ISim build 0x79f3f3a8 */

#define XSI_HIDE_SYMBOL_SPEC true
#include "xsi.h"
#include <memory.h>
#ifdef __GNUC__
#include <stdlib.h>
#else
#include <malloc.h>
#define alloca _alloca
#endif
static const char *ng0 = "D:/EN/projet/svnarc/projet_ver1.ews/design.hdl/dcf_ver1/tb_dcf.vhd";



static void work_a_2477328614_2372691052_p_0(char *t0)
{
    char *t1;
    char *t2;
    char *t3;
    unsigned char t4;
    unsigned char t5;
    char *t6;
    char *t7;
    char *t8;
    char *t9;
    int64 t10;
    char *t11;
    char *t12;
    char *t13;
    char *t14;
    char *t15;
    int64 t16;
    char *t17;
    char *t18;
    char *t19;
    char *t20;

LAB0:    t1 = (t0 + 2632U);
    t2 = *((char **)t1);
    if (t2 == 0)
        goto LAB2;

LAB3:    goto *t2;

LAB2:    xsi_set_current_line(103, ng0);
    t2 = (t0 + 1696U);
    t3 = *((char **)t2);
    t4 = *((unsigned char *)t3);
    t5 = (t4 == (unsigned char)0);
    if (t5 != 0)
        goto LAB4;

LAB6:    xsi_set_current_line(108, ng0);

LAB13:    *((char **)t1) = &&LAB14;

LAB1:    return;
LAB4:    xsi_set_current_line(104, ng0);
    t2 = (t0 + 3008);
    t6 = (t2 + 32U);
    t7 = *((char **)t6);
    t8 = (t7 + 40U);
    t9 = *((char **)t8);
    *((unsigned char *)t9) = (unsigned char)3;
    xsi_driver_first_trans_delta(t2, 0U, 1, 0LL);
    t10 = (100 * 1000LL);
    t11 = (t0 + 3008);
    t12 = (t11 + 32U);
    t13 = *((char **)t12);
    t14 = (t13 + 40U);
    t15 = *((char **)t14);
    *((unsigned char *)t15) = (unsigned char)2;
    xsi_driver_subsequent_trans_delta(t11, 0U, 1, t10);
    xsi_set_current_line(105, ng0);
    t2 = (t0 + 3044);
    t3 = (t2 + 32U);
    t6 = *((char **)t3);
    t7 = (t6 + 40U);
    t8 = *((char **)t7);
    *((unsigned char *)t8) = (unsigned char)3;
    xsi_driver_first_trans_delta(t2, 0U, 1, 0LL);
    t10 = (250 * 1000LL);
    t9 = (t0 + 3044);
    t11 = (t9 + 32U);
    t12 = *((char **)t11);
    t13 = (t12 + 40U);
    t14 = *((char **)t13);
    *((unsigned char *)t14) = (unsigned char)2;
    xsi_driver_subsequent_trans_delta(t9, 0U, 1, t10);
    t16 = (750 * 1000LL);
    t15 = (t0 + 3044);
    t17 = (t15 + 32U);
    t18 = *((char **)t17);
    t19 = (t18 + 40U);
    t20 = *((char **)t19);
    *((unsigned char *)t20) = (unsigned char)3;
    xsi_driver_subsequent_trans_delta(t15, 0U, 1, t16);
    xsi_set_current_line(106, ng0);
    t10 = (1 * 1000000LL);
    t2 = (t0 + 2532);
    xsi_process_wait(t2, t10);

LAB9:    *((char **)t1) = &&LAB10;
    goto LAB1;

LAB5:    goto LAB2;

LAB7:    goto LAB5;

LAB8:    goto LAB7;

LAB10:    goto LAB8;

LAB11:    goto LAB5;

LAB12:    goto LAB11;

LAB14:    goto LAB12;

}

void work_a_2477328614_2372691052_sub_105344256_3128663104(char *t0, char *t1, int t2)
{
    char t4[8];
    char *t5;
    int t6;
    int t7;
    char *t8;
    char *t9;
    char *t10;
    char *t11;
    char *t12;
    char *t13;
    char *t14;
    char *t15;
    char *t16;
    char *t17;
    char *t18;
    char *t19;
    unsigned int t20;
    char *t21;
    char *t22;
    char *t23;
    unsigned char t24;
    char *t25;
    unsigned char t26;
    char *t27;
    char *t28;
    unsigned char t29;
    unsigned char t30;
    int t31;

LAB0:    t5 = (t4 + 4U);
    *((int *)t5) = t2;
    t6 = 1;
    t7 = t2;

LAB2:    if (t6 <= t7)
        goto LAB3;

LAB5:
LAB1:    return;
LAB3:    t8 = (t0 + 1948U);
    xsi_add_dynamic_wait(t1, t8, -1, -1);
    t9 = (t0 + 1948U);
    xsi_add_dynamic_wait(t1, t9, -1, -1);

LAB9:    t10 = (t1 + 128U);
    t10 = *((char **)t10);
    xsi_wp_set_status(t10, 1);
    t11 = (t1 + 48U);
    t12 = *((char **)t11);
    t13 = (t12 + 1440U);
    *((unsigned int *)t13) = 1U;
    t14 = (t1 + 48U);
    t15 = *((char **)t14);
    t16 = (t15 + 0U);
    getcontext(t16);
    t17 = (t1 + 48U);
    t18 = *((char **)t17);
    t19 = (t18 + 1440U);
    t20 = *((unsigned int *)t19);
    if (t20 == 1)
        goto LAB10;

LAB11:    t21 = (t1 + 48U);
    t22 = *((char **)t21);
    t23 = (t22 + 1440U);
    *((unsigned int *)t23) = 3U;

LAB7:
LAB8:    t25 = (t0 + 1948U);
    t26 = xsi_signal_has_event(t25);
    if (t26 == 1)
        goto LAB12;

LAB13:    t24 = (unsigned char)0;

LAB14:    if (t24 == 1)
        goto LAB6;
    else
        goto LAB9;

LAB4:    if (t6 == t7)
        goto LAB5;

LAB15:    t31 = (t6 + 1);
    t6 = t31;
    goto LAB2;

LAB6:    xsi_remove_dynamic_wait(t1, t8);
    xsi_remove_dynamic_wait(t1, t9);
    goto LAB4;

LAB10:    xsi_saveStackAndSuspend(t1);
    goto LAB11;

LAB12:    t27 = (t0 + 1972U);
    t28 = *((char **)t27);
    t29 = *((unsigned char *)t28);
    t30 = (t29 == (unsigned char)3);
    t24 = t30;
    goto LAB14;

}

void work_a_2477328614_2372691052_sub_1609090416_3128663104(char *t0, char *t1)
{
    char *t4;
    char *t5;
    char *t6;
    char *t7;
    char *t8;
    char *t9;
    char *t10;
    char *t11;
    char *t12;
    unsigned int t13;

LAB0:    t4 = (t0 + 3080);
    t5 = (t4 + 32U);
    t6 = *((char **)t5);
    t7 = (t6 + 40U);
    t8 = *((char **)t7);
    *((unsigned char *)t8) = (unsigned char)3;
    xsi_driver_first_trans_fast(t4);
    t4 = (t0 + 3116);
    t5 = (t4 + 32U);
    t6 = *((char **)t5);
    t7 = (t6 + 40U);
    t8 = *((char **)t7);
    *((unsigned char *)t8) = (unsigned char)2;
    xsi_driver_first_trans_fast(t4);
    t4 = (t0 + 3152);
    t5 = (t4 + 32U);
    t6 = *((char **)t5);
    t7 = (t6 + 40U);
    t8 = *((char **)t7);
    *((unsigned char *)t8) = (unsigned char)2;
    xsi_driver_first_trans_fast(t4);
    t4 = (t0 + 3188);
    t5 = (t4 + 32U);
    t6 = *((char **)t5);
    t7 = (t6 + 40U);
    t8 = *((char **)t7);
    *((unsigned char *)t8) = (unsigned char)2;
    xsi_driver_first_trans_fast(t4);
    t4 = (t0 + 6037);
    t6 = (t0 + 3224);
    t7 = (t6 + 32U);
    t8 = *((char **)t7);
    t9 = (t8 + 40U);
    t10 = *((char **)t9);
    t11 = (t0 + 5944U);
    t12 = (t11 + 12U);
    t13 = *((unsigned int *)t12);
    t13 = (t13 * 1U);
    memcpy(t10, t4, t13);
    xsi_driver_first_trans_fast(t6);
    t4 = (t0 + 6041);
    t6 = (t0 + 3260);
    t7 = (t6 + 32U);
    t8 = *((char **)t7);
    t9 = (t8 + 40U);
    t10 = *((char **)t9);
    t11 = (t0 + 5960U);
    t12 = (t11 + 12U);
    t13 = *((unsigned int *)t12);
    t13 = (t13 * 1U);
    memcpy(t10, t4, t13);
    xsi_driver_first_trans_fast(t6);
    t4 = (t0 + 3296);
    t5 = (t4 + 32U);
    t6 = *((char **)t5);
    t7 = (t6 + 40U);
    t8 = *((char **)t7);
    *((unsigned char *)t8) = (unsigned char)3;
    xsi_driver_first_trans_fast(t4);
    t4 = (t0 + 3332);
    t5 = (t4 + 32U);
    t6 = *((char **)t5);
    t7 = (t6 + 40U);
    t8 = *((char **)t7);
    *((unsigned char *)t8) = (unsigned char)2;
    xsi_driver_first_trans_fast(t4);
    t4 = (t0 + 3368);
    t5 = (t4 + 32U);
    t6 = *((char **)t5);
    t7 = (t6 + 40U);
    t8 = *((char **)t7);
    *((unsigned char *)t8) = (unsigned char)2;
    xsi_driver_first_trans_fast(t4);

LAB1:    return;
}

void work_a_2477328614_2372691052_sub_1412741268_3128663104(char *t0, char *t1, unsigned char t2, unsigned char t3, int t4)
{
    char t6[16];
    char *t7;
    char *t8;
    char *t9;
    unsigned char t10;
    char *t11;
    char *t12;
    char *t13;
    char *t14;
    char *t15;
    int64 t16;
    char *t17;
    char *t18;
    char *t19;
    char *t20;
    char *t21;

LAB0:    t7 = (t6 + 4U);
    *((unsigned char *)t7) = t2;
    t8 = (t6 + 5U);
    *((unsigned char *)t8) = t3;
    t9 = (t6 + 6U);
    *((int *)t9) = t4;
    t10 = (t2 != t3);
    if (t10 != 0)
        goto LAB2;

LAB4:
LAB3:
LAB1:    return;
LAB2:    t11 = (t0 + 2972);
    t12 = (t11 + 32U);
    t13 = *((char **)t12);
    t14 = (t13 + 40U);
    t15 = *((char **)t14);
    *((unsigned char *)t15) = (unsigned char)3;
    xsi_driver_first_trans_delta(t11, 0U, 1, 0LL);
    t16 = (1 * 1000LL);
    t17 = (t0 + 2972);
    t18 = (t17 + 32U);
    t19 = *((char **)t18);
    t20 = (t19 + 40U);
    t21 = *((char **)t20);
    *((unsigned char *)t21) = (unsigned char)2;
    xsi_driver_subsequent_trans_delta(t17, 0U, 1, t16);
    t11 = (t0 + 2972);
    t12 = (t11 + 32U);
    t13 = *((char **)t12);
    t14 = (t13 + 40U);
    t15 = *((char **)t14);
    *((int *)t15) = t4;
    xsi_driver_first_trans_fast(t11);
    if ((unsigned char)0 == 0)
        goto LAB5;

LAB6:    goto LAB3;

LAB5:    t11 = (t0 + 6049);
    xsi_report(t11, 26U, (unsigned char)1);
    goto LAB6;

}

void work_a_2477328614_2372691052_sub_1568462173_3128663104(char *t0, char *t1, char *t2, char *t3, int t4)
{
    char t6[24];
    char t7[16];
    char t12[16];
    char *t8;
    char *t9;
    int t10;
    unsigned int t11;
    char *t13;
    int t14;
    unsigned char t15;
    char *t16;
    char *t17;
    unsigned char t18;
    char *t19;
    char *t20;
    char *t21;
    char *t22;
    unsigned int t23;
    unsigned char t24;
    unsigned int t25;
    char *t26;
    char *t27;
    char *t28;
    char *t29;
    char *t30;
    char *t31;
    char *t32;
    int64 t33;
    char *t34;
    char *t35;
    char *t36;
    char *t37;
    char *t38;

LAB0:    t8 = (t7 + 0U);
    t9 = (t8 + 0U);
    *((int *)t9) = 6;
    t9 = (t8 + 4U);
    *((int *)t9) = 0;
    t9 = (t8 + 8U);
    *((int *)t9) = -1;
    t10 = (0 - 6);
    t11 = (t10 * -1);
    t11 = (t11 + 1);
    t9 = (t8 + 12U);
    *((unsigned int *)t9) = t11;
    t9 = (t12 + 0U);
    t13 = (t9 + 0U);
    *((int *)t13) = 6;
    t13 = (t9 + 4U);
    *((int *)t13) = 0;
    t13 = (t9 + 8U);
    *((int *)t13) = -1;
    t14 = (0 - 6);
    t11 = (t14 * -1);
    t11 = (t11 + 1);
    t13 = (t9 + 12U);
    *((unsigned int *)t13) = t11;
    t13 = (t6 + 4U);
    t15 = (t2 != 0);
    if (t15 == 1)
        goto LAB3;

LAB2:    t16 = (t6 + 8U);
    *((char **)t16) = t7;
    t17 = (t6 + 12U);
    t18 = (t3 != 0);
    if (t18 == 1)
        goto LAB5;

LAB4:    t19 = (t6 + 16U);
    *((char **)t19) = t12;
    t20 = (t6 + 20U);
    *((int *)t20) = t4;
    t21 = (t7 + 12U);
    t11 = *((unsigned int *)t21);
    t11 = (t11 * 1U);
    t22 = (t12 + 12U);
    t23 = *((unsigned int *)t22);
    t23 = (t23 * 1U);
    t24 = 1;
    if (t11 == t23)
        goto LAB9;

LAB10:    t24 = 0;

LAB11:    if ((!(t24)) != 0)
        goto LAB6;

LAB8:
LAB7:
LAB1:    return;
LAB3:    *((char **)t13) = t2;
    goto LAB2;

LAB5:    *((char **)t17) = t3;
    goto LAB4;

LAB6:    t28 = (t0 + 2972);
    t29 = (t28 + 32U);
    t30 = *((char **)t29);
    t31 = (t30 + 40U);
    t32 = *((char **)t31);
    *((unsigned char *)t32) = (unsigned char)3;
    xsi_driver_first_trans_delta(t28, 0U, 1, 0LL);
    t33 = (1 * 1000LL);
    t34 = (t0 + 2972);
    t35 = (t34 + 32U);
    t36 = *((char **)t35);
    t37 = (t36 + 40U);
    t38 = *((char **)t37);
    *((unsigned char *)t38) = (unsigned char)2;
    xsi_driver_subsequent_trans_delta(t34, 0U, 1, t33);
    t8 = (t0 + 2972);
    t9 = (t8 + 32U);
    t21 = *((char **)t9);
    t22 = (t21 + 40U);
    t26 = *((char **)t22);
    *((int *)t26) = t4;
    xsi_driver_first_trans_fast(t8);
    if ((unsigned char)0 == 0)
        goto LAB15;

LAB16:    goto LAB7;

LAB9:    t25 = 0;

LAB12:    if (t25 < t11)
        goto LAB13;
    else
        goto LAB11;

LAB13:    t26 = (t2 + t25);
    t27 = (t3 + t25);
    if (*((unsigned char *)t26) != *((unsigned char *)t27))
        goto LAB10;

LAB14:    t25 = (t25 + 1);
    goto LAB12;

LAB15:    t8 = (t0 + 6075);
    xsi_report(t8, 26U, (unsigned char)1);
    goto LAB16;

}

void work_a_2477328614_2372691052_sub_2681121013_3128663104(char *t0, char *t1, unsigned char t2)
{
    char t4[8];
    char *t5;
    char *t6;
    char *t7;
    char *t8;
    char *t9;
    char *t10;

LAB0:    t5 = (t4 + 4U);
    *((unsigned char *)t5) = t2;
    t6 = (t0 + 3116);
    t7 = (t6 + 32U);
    t8 = *((char **)t7);
    t9 = (t8 + 40U);
    t10 = *((char **)t9);
    *((unsigned char *)t10) = (unsigned char)3;
    xsi_driver_first_trans_fast(t6);
    work_a_2477328614_2372691052_sub_105344256_3128663104(t0, t1, 100000);
    t6 = (t0 + 3116);
    t7 = (t6 + 32U);
    t8 = *((char **)t7);
    t9 = (t8 + 40U);
    t10 = *((char **)t9);
    *((unsigned char *)t10) = t2;
    xsi_driver_first_trans_fast(t6);
    work_a_2477328614_2372691052_sub_105344256_3128663104(t0, t1, 100000);
    t6 = (t0 + 3116);
    t7 = (t6 + 32U);
    t8 = *((char **)t7);
    t9 = (t8 + 40U);
    t10 = *((char **)t9);
    *((unsigned char *)t10) = (unsigned char)2;
    xsi_driver_first_trans_fast(t6);
    work_a_2477328614_2372691052_sub_105344256_3128663104(t0, t1, 800000);

LAB1:    return;
}

void work_a_2477328614_2372691052_sub_4286781285_3128663104(char *t0, char *t1)
{
    char *t4;
    char *t5;
    char *t6;
    char *t7;
    char *t8;

LAB0:    t4 = (t0 + 3116);
    t5 = (t4 + 32U);
    t6 = *((char **)t5);
    t7 = (t6 + 40U);
    t8 = *((char **)t7);
    *((unsigned char *)t8) = (unsigned char)2;
    xsi_driver_first_trans_fast(t4);
    work_a_2477328614_2372691052_sub_105344256_3128663104(t0, t1, 1000000);

LAB1:    return;
}

void work_a_2477328614_2372691052_sub_2504145316_3128663104(char *t0, char *t1, char *t2)
{
    char t4[16];
    char t5[16];
    char *t6;
    char *t7;
    int t8;
    unsigned int t9;
    unsigned char t10;
    char *t11;
    int t12;
    int t13;
    char *t14;
    int t15;
    char *t16;
    int t17;
    int t18;
    char *t19;
    int t20;
    unsigned int t21;
    unsigned int t22;
    char *t23;
    unsigned char t24;

LAB0:    t6 = (t5 + 0U);
    t7 = (t6 + 0U);
    *((int *)t7) = 58;
    t7 = (t6 + 4U);
    *((int *)t7) = 0;
    t7 = (t6 + 8U);
    *((int *)t7) = -1;
    t8 = (0 - 58);
    t9 = (t8 * -1);
    t9 = (t9 + 1);
    t7 = (t6 + 12U);
    *((unsigned int *)t7) = t9;
    t7 = (t4 + 4U);
    t10 = (t2 != 0);
    if (t10 == 1)
        goto LAB3;

LAB2:    t11 = (t4 + 8U);
    *((char **)t11) = t5;
    t12 = 0;
    t13 = 58;

LAB4:    if (t12 <= t13)
        goto LAB5;

LAB7:    work_a_2477328614_2372691052_sub_4286781285_3128663104(t0, t1);

LAB1:    return;
LAB3:    *((char **)t7) = t2;
    goto LAB2;

LAB5:    t14 = (t5 + 0U);
    t15 = *((int *)t14);
    t16 = (t5 + 8U);
    t17 = *((int *)t16);
    t18 = (t12 - t15);
    t9 = (t18 * t17);
    t19 = (t5 + 4U);
    t20 = *((int *)t19);
    xsi_vhdl_check_range_of_index(t15, t20, t17, t12);
    t21 = (1U * t9);
    t22 = (0 + t21);
    t23 = (t2 + t22);
    t24 = *((unsigned char *)t23);
    work_a_2477328614_2372691052_sub_2681121013_3128663104(t0, t1, t24);

LAB6:    if (t12 == t13)
        goto LAB7;

LAB8:    t8 = (t12 + 1);
    t12 = t8;
    goto LAB4;

}

static void work_a_2477328614_2372691052_p_1(char *t0)
{
    char *t1;
    char *t2;
    char *t3;
    char *t4;
    char *t5;
    char *t6;

LAB0:    t1 = (t0 + 2776U);
    t2 = *((char **)t1);
    if (t2 == 0)
        goto LAB2;

LAB3:    goto *t2;

LAB2:    xsi_set_current_line(187, ng0);
    t2 = (t0 + 2676);
    work_a_2477328614_2372691052_sub_1609090416_3128663104(t0, t2);
    xsi_set_current_line(188, ng0);
    if ((unsigned char)0 == 0)
        goto LAB4;

LAB5:    xsi_set_current_line(190, ng0);
    t2 = (t0 + 2676);
    work_a_2477328614_2372691052_sub_105344256_3128663104(t0, t2, 10);
    xsi_set_current_line(191, ng0);
    t2 = (t0 + 3332);
    t3 = (t2 + 32U);
    t4 = *((char **)t3);
    t5 = (t4 + 40U);
    t6 = *((char **)t5);
    *((unsigned char *)t6) = (unsigned char)3;
    xsi_driver_first_trans_fast(t2);
    xsi_set_current_line(192, ng0);
    t2 = (t0 + 2676);
    t3 = (t0 + 6126);
    work_a_2477328614_2372691052_sub_2504145316_3128663104(t0, t2, t3);
    xsi_set_current_line(193, ng0);
    t2 = (t0 + 2676);
    work_a_2477328614_2372691052_sub_2681121013_3128663104(t0, t2, (unsigned char)3);
    xsi_set_current_line(194, ng0);
    t2 = (t0 + 2676);
    work_a_2477328614_2372691052_sub_2681121013_3128663104(t0, t2, (unsigned char)2);
    xsi_set_current_line(195, ng0);
    t2 = (t0 + 3404);
    t3 = (t2 + 32U);
    t4 = *((char **)t3);
    t5 = (t4 + 40U);
    t6 = *((char **)t5);
    *((unsigned char *)t6) = (unsigned char)1;
    xsi_driver_first_trans_fast(t2);
    xsi_set_current_line(196, ng0);

LAB8:    *((char **)t1) = &&LAB9;

LAB1:    return;
LAB4:    t2 = (t0 + 6101);
    xsi_report(t2, 25U, (unsigned char)0);
    goto LAB5;

LAB6:    goto LAB2;

LAB7:    goto LAB6;

LAB9:    goto LAB7;

}


extern void work_a_2477328614_2372691052_init()
{
	static char *pe[] = {(void *)work_a_2477328614_2372691052_p_0,(void *)work_a_2477328614_2372691052_p_1};
	static char *se[] = {(void *)work_a_2477328614_2372691052_sub_105344256_3128663104,(void *)work_a_2477328614_2372691052_sub_1609090416_3128663104,(void *)work_a_2477328614_2372691052_sub_1412741268_3128663104,(void *)work_a_2477328614_2372691052_sub_1568462173_3128663104,(void *)work_a_2477328614_2372691052_sub_2681121013_3128663104,(void *)work_a_2477328614_2372691052_sub_4286781285_3128663104,(void *)work_a_2477328614_2372691052_sub_2504145316_3128663104};
	xsi_register_didat("work_a_2477328614_2372691052", "isim/tb_dcf_isim_beh.exe.sim/work/a_2477328614_2372691052.didat");
	xsi_register_executes(pe);
	xsi_register_subprogram_executes(se);
}
